#if !defined(_MEDIADATA_H)
#define _MEDIADATA_H
#include "IMediaData.h"

class MediaData: public IMediaData{
public:
	void initAudioData(int dataType, int size, int timeSample);
	void initVideoData(int dataType, int size, int timeSample);
	void initAmfData(int dataType);


	void setVideoData(char *data, int width, int height);
	void setAudioData(char* data, int samplerate, int channels);
	void setAmfData(int width, int height, int framerate, int videodatarate, int videocodecid, int channels, int audiodatarate, 
		int audiosamplerate, int audiosamplesize, int stereo, int audiocodecid, CString major_brand, CString minor_version,
		CString compatible_brands, CString encoder, int filesize, int duration);


	bool isAudioHeader();
	bool isVideoHeader();
	bool isAudioData();
	bool isVideoData();
	bool isAmfHeader();
	bool isAmfData();

	char* getData();
	int getDataSize();
	int getTimeSample();

};

#endif  //_MEDIADATA_H